package com.luty.rpc.sample.server;

import com.luty.rpc.sample.api.HelloService;
import com.luty.rpc.sample.api.Person;
import com.luty.rpc.server.RpcService;

/**
 * Created by Luty on 2017/6/15.
 */
@RpcService(HelloService.class)
public class HelloServiceImple implements HelloService {
    @Override
    public String hello(String name) {
        return "Hello! "+ name;
    }

    @Override
    public String hello(Person person) {
        return "Hello! " + person.getFirstName() + " " +person.getLastName();
    }
}
